<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
function resourcesModifySubmit(formObj){
	$("#rse_modify_rseTypeName").val($("#rse_modify_rseType").find("option:selected").text());
	return validateCallback(formObj,navTabAjaxDone);
}
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoModify"/>资源</span></li>
			<li class="line">line</li>
	        <c:if test="${p:isPower('/function/resourcesRemove.shtml',sessionScope.loginAccount)}">
			<li><a class="delete" href="<c:url value="/function/resourcesRemove.shtml"/>?rseId=${rse.rseId}" target="ajax" rel="menuId_70"><span><spring:message code="search.btnRemove"/></span></a></li>
			</c:if>
		</ul>
	</div>
    <form id="addResourcesFrom" action="<c:url value="/function/resourcesModify.shtml"/>" method="post" onsubmit="return resourcesModifySubmit(this);">
    <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">          
        <tbody>
            <tr>
            	<td>所属功能：</td>
                <td>
                    <input type="hidden" name="rse_modify_rseId" id="rse_modify_rseId" value="${rse.rseId}">
                    <input type="hidden" name="rse_modify_funId" id="rse_modify_funId" value="${rse.funId}">
                    <input type="hidden" name="rse_modify_funName" id="rse_modify_funName" value="${fun.funName}">
                    <input type="hidden" name="rse_modify_rseCode" id="rse_modify_rseCode" value="${fun.funCode}">
                    ${fun.funName}
                </td>
                <td>资源类型：</td>
                <td>
	                <select class="required" name="rse_modify_rseType" id="rse_modify_rseType">
	                	<option value="">--请选择--</option>
	           			<c:forEach items="${typeList}" var="atrType">
	           				<option value="${atrType.atrValue}" <c:if test="${rse.rseType==atrType.atrValue}">selected="selected"</c:if>>${atrType.atrName}</option>
	           			</c:forEach>
	           		</select>
	    			<input type="hidden" name="rse_modify_rseTypeName" id="rse_modify_rseTypeName" value="${rse.rseTypeName}">
				</td>
            </tr>
            <tr>
                <td>资源地址：</td>
                <td colspan="3">
                	<input type="text" name="rse_modify_rseUrl" id="rse_modify_rseUrl" value="${rse.rseUrl}" maxlength="100">
                </td>
            </tr>
            <tr>
                <td>资源类：</td>
                <td>
                	<input type="text" name="rse_modify_rseClass" id="rse_modify_rseClass" value="${rse.rseClass}" maxlength="20">
                </td>
                <td>资源方法：</td>
                <td>
                	<input type="text" name="rse_modify_rseFunction" id="rse_modify_rseFunction" value="${rse.rseFunction}" maxlength="20">
                </td>
            </tr>
            <tr>
                <td>资源状态：</td>
                <td>
	                <select class="required" name="rse_modify_rseState" id="rse_modify_rseState">
	                	<option value="">--请选择--</option>
	           			<c:forEach items="${stateList}" var="atrState">
	           				<option value="${atrState.atrValue}" <c:if test="${rse.rseState==atrState.atrValue}">selected="selected"</c:if>>${atrState.atrName}</option>
	           			</c:forEach>
	           		</select>
	    			<input type="hidden" name="rse_modify_rseStateName" id="rse_modify_rseStateName" value="${rse.rseStateName}"/>
	    		</td>
                <td colspan="2"></td>
            </tr>
            <tr>
                <td>备注：</td>
                <td colspan="3">
                	<input type="text" name="rse_modify_rseRemark" id="rse_modify_rseRemark" value="${rse.rseRemark}" maxlength="100">
                </td>
            </tr>
        </tbody>
    </table>
	<div class="panelBar">
        <div class="buttonActive">
        <c:if test="${p:isPower('/function/resourcesModify.shtml',sessionScope.loginAccount)}">
        <div class="buttonContent"><button type="submit"><spring:message code="modify.btnModify"/></button></div>
        </c:if>
        </div>
	</div>
    </form>
</div>